package com.uphone.kingmall.base;

import androidx.fragment.app.Fragment;

import com.uphone.kingmall.app.MyApplication;
import com.uphone.kingmall.fragment.MessageListFragment;
import com.uphone.kingmall.login.LoginActivity;
import com.uphone.kingmall.main.MainActivity;
import com.uphone.kingmall.utils.ActivityCollector;
import com.uphone.kingmall.utils.CommonUtil;

import java.util.ArrayList;
import java.util.List;

/**
 * <pre>
 *     author : radish
 *     e-mail : 15703379121@163.com
 *     time   : 2019/4/3
 *     desc   :
 * </pre>
 */
public class TestActivity extends BaseTabActivity1 {
    @Override
    protected String initTitle() {
        ActivityCollector.removeAll(/*MainActivity.class*/);
        CommonUtil.startIntent(MyApplication.mContext, MainActivity.class);
        CommonUtil.startIntent(MyApplication.mContext, LoginActivity.class);
        return "测试";
    }

    @Override
    protected List<Fragment> getFragmentList() {
        ArrayList<Fragment> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            list.add(MessageListFragment.newInstance());
        }
        return list;
    }

    @Override
    protected String[] getItems() {
        return new String[]{"当初","是是是是","yi","是是是是","对着呢","是是是是","测","当初","是是是是是是是是","是是是是"};
    }
}
